package org.streets.workflow.model;

import org.streets.workflow.model.resource.WFSubProcessRef;

/**
 * 子流程类型的Task。
 */
@SuppressWarnings("serial")
public class WFSubflowTask extends WFTask{
	/**
	 * 任务所引用的子流程信息。
	 */
    protected WFSubProcessRef subProcessModel = null;

    //TODO subflow Task如何会签？

    public WFSubflowTask(){
        this.setType(SUBFLOW);
    }

    public WFSubflowTask(WFElement parent, String name) {
        super(parent, name);
        this.setType(SUBFLOW);
    }

    /**
     * 返回SUBFLOW类型的任务的子流程信息
     * @return
     * @see org.WFSubProcessRef.model.reference.SubWorkflowProcess
     */
    public WFSubProcessRef getSubProcessModel() {
        return subProcessModel;
    }

    public void setSubProcessModel(WFSubProcessRef subProcessModel) {
        this.subProcessModel = subProcessModel;
    }
}
